
public class Employee extends Person {
    private String department;
    private String position;
    public Employee(String name, String sex, int age,String department,String position) {
        super(name, sex, age);
        this.department=department;
        this.position=position;
    }

    public String showInfo() {
        String kk=super.showInfo();
        StringBuffer fw=new StringBuffer();
        fw.append(kk).append("\n职业：").append(this.position).append("\n部门:").append(this.department);
        return fw.toString();

    }
}
